﻿; (function () {

    'use strict';

    window.CmdArgsHelper = function CmdArgsHelper() {
    }

    CmdArgsHelper.IsSwitchArgs = function (args) {
        return args.endsWith("-on") || args.endsWith("-off");
    }

    CmdArgsHelper.GetSwitchArgsValue = function (args) {
        var isOn = args.endsWith("-on");
        var splits = args.split("-");
        splits.splice(splits.length - 1);
        var key = splits.join("-");

        return {
            isOn: isOn,
            key: key
        }
    }

}(window));
